from django.db import models


# Create your models here.

class User(models.Model):
    username = models.CharField(max_length=32, verbose_name='用户')
    password = models.CharField(max_length=120, verbose_name='密码')
    address = models.CharField(max_length=200, verbose_name='地址')
    phone = models.CharField(max_length=200, verbose_name='电话')
    realname = models.CharField(max_length=200, verbose_name='真实姓名')
    identity = models.CharField(max_length=200, verbose_name='身份证')
    img = models.ImageField(upload_to = 'static/pic')

    class Meta:
        db_table = 'user'

